/************************************************************ File: cholesky_master.h Description: A program that inputs a matrix from a file and computes the Cholesky decomposition using several processes. Author: Dana Vrajitoru Organization: IUSB Date: August 16, 2002 **************************************************************/ #ifndef CHOLESKY_MASTER_H #define CHOLESKY_MASTER_H // Asks for the file name, reads the matrix from the file, and sends // each line to the corresponding slave process. void Read_matrix(int proc_nr); // Asks for a file name for the result, collects the resulting matrix // by line from the slave processes, then writes it to the file. Since // the resulting matrix is 0 above the diagonal, the master only // receives the part of the matrix on and below the diagonal. void Write_solution(int proc_nr); // The master function: inputs the data and writes the results. void Master(int proc_nr); #endif